import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	applications_list: apix + '/room/applications/list',
	applications_export: apix + '/room/applications/export',
	room_applications: apix + '/room/applications',
	// room_applications: apix + '/room/applications',
	room_applicationsId: apix + '/room/applications/',
}

//查询租房信息列表
export function applicationsList(obj) {
	return request.get(api.applications_list, {
		...obj
	})
}
//导出租房信息列表
export function applicationsExport(obj) {
	return request.post(api.applications_export, {
		...obj
	})
}
//获取租房信息详细信息
export function applicationsId(id) {
	return request.get(api.room_applicationsId + id)
}
//新增租房信息
export function addapplications(obj) {
	return request.post(api.room_applications, {
		...obj
	})
}
//修改租房信息
export function putapplications(obj) {
	return request.put(api.room_applications, {
		...obj
	})
}
//删除租房信息
export function delapplications(id) {
	return request.delete(api.room_applicationsId + id)
}